<?php
class eBaySession extends gravy{
	public $id="";
	public $xml="";

	function __construct(){
		parent::__construct();
	}

	static public function getId(){
		$result=false;

		$requestXml='<?xml version="1.0" encoding="utf-8"?>';
		$requestXml.='<GetSessionIDRequest xmlns="urn:ebay:apis:eBLBaseComponents">';
		$requestXml.='	<RuName>'.eBayConfig::RUNAME.'</RuName>';
		$requestXml.='</GetSessionIDRequest>';

		$req=new eBayRequest("GetSessionID");
		if($xml=$req->fetch($requestXml)){
			$result=(string)$xml->SessionID;
		}
		return($result);
	}
}
?>